//
//  RemittancesAccountViewModel.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/6.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "RemittancesAccountViewModel.h"

@implementation RemittancesAccountViewModel

-(instancetype)initWithViewToViewScrollView:(UIScrollView *)scrollView theSuperView:(UIView *)superView{
    if (self = [super initWithViewToViewScrollView:scrollView theSuperView:superView]) {
        scrollView.y = scrollView.y + kHeightProportion_In_iPhoneTriploid(10);
        scrollView.height = scrollView.height - kHeightProportion_In_iPhoneTriploid(10);
        scrollView.contentSize = CGSizeMake(scrollView.width, scrollView.height);
        [superView addSubview:scrollView];
        //
        GLGWLabel * tosLabel = [[GLGWLabel alloc] initWithFrame:CGRectMake(kWidthProportion_In_iPhoneTriploid(15), kHeightProportion_In_iPhoneTriploid(18), KScreenWidth - kWidthProportion_In_iPhoneTriploid(30), kHeightProportion_In_iPhoneTriploid(17)) theFont:SYSTEMFONT(12) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:scrollView];
        tosLabel.text = @"请汇款至以下银行账号";
        //
        GLGWView * bankgroundView = [[GLGWView alloc] initWithFrame:CGRectMake(kWidthProportion_In_iPhoneTriploid(15), kY_With_View(tosLabel, 13), KScreenWidth - kWidthProportion_In_iPhoneTriploid(30), kHeightProportion_In_iPhoneTriploid(104)) inSuperView:scrollView];
        bankgroundView.backgroundColor = [UIColor whiteColor];
        [bankgroundView setViewShadowWidth:3.0 theCornerRadius:3.0];
        //
        GLGWImageView * bankIconImageView = [[GLGWImageView alloc] initWithFrame:CGRectMake(kWidthProportion_In_iPhoneTriploid(12), kHeightProportion_In_iPhoneTriploid(18), kWidthProportion_In_iPhoneTriploid(40), kHeightProportion_In_iPhoneTriploid(40)) inSuperView:bankgroundView];
        bankIconImageView.backgroundColor = kRandomColor;
        //
        GLGWLabel * companyLabel = [[GLGWLabel alloc] initWithFrame:CGRectMake(kX_With_View(bankIconImageView, 15), kHeightProportion_In_iPhoneTriploid(11), bankgroundView.width - kX_With_View(bankIconImageView, 30), kHeightProportion_In_iPhoneTriploid(30)) theFont:SYSTEMFONT(15) theColor:kColor_Rule_Black inSuperView:bankgroundView];
        companyLabel.text = @"北京黑金时空电子商务公司";
        //
        GLGWLabel * bankNumberLaber = [[GLGWLabel alloc] initWithFrame:CGRectMake(companyLabel.x, kY_With_View(companyLabel, 7), companyLabel.width, kHeightProportion_In_iPhoneTriploid(19)) theFont:SYSTEMFONT(12) theColor:[UIColor colorWithHexString:@"#666666"] inSuperView:bankgroundView];
        bankNumberLaber.text = @"招商银行 110907597010206";
        //
        GLGWLabel * adressLabel = [[GLGWLabel alloc] initWithFrame:CGRectMake(bankNumberLaber.x, kY_With_View(bankNumberLaber, 5), bankNumberLaber.width, bankNumberLaber.height) theFont:SYSTEMFONT(12) theColor:[UIColor colorWithHexString:@"#666666"] inSuperView:bankgroundView];
        adressLabel.text = @"开户行：招商银行北京青年路支行";
    }
    return self;
}

@end
